/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package securityfacade;

import java.rmi.Remote;
import java.rmi.RemoteException;
import rmiinterfaces.SecurityInterface;

/**
 * Interface that need to be implemented by all classes that performs authentication
 * @author Group 10
 */
public interface AuthenticationInterface  {
    /***
     * Method that accepts a user name and password, and returns whether authentication was succesfull
     * @param login
     * @param psw
     * @return AuthReturn enumeration
     * @throws RemoteException 
     */
    public SecurityInterface.AuthReturn authenticate(String login, String psw) throws RemoteException;
}
